package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.OutsourcingGoods;
import com.ecoolex.ying.space.entity.OutsourcingGoodsExample;
import com.ecoolex.ying.space.entity.OutsourcingGoodsWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface OutsourcingGoodsMapper {
    long countByExample(OutsourcingGoodsExample example);

    int deleteByExample(OutsourcingGoodsExample example);

    int deleteByPrimaryKey(Integer outsourcingGoodsId);

    int insert(OutsourcingGoodsWithBLOBs record);

    int insertSelective(@Param("record") OutsourcingGoodsWithBLOBs record, @Param("selective") OutsourcingGoodsWithBLOBs.Column ... selective);

    OutsourcingGoods selectOneByExample(OutsourcingGoodsExample example);

    OutsourcingGoodsWithBLOBs selectOneByExampleWithBLOBs(OutsourcingGoodsExample example);

    List<OutsourcingGoodsWithBLOBs> selectByExampleWithBLOBs(OutsourcingGoodsExample example);

    List<OutsourcingGoods> selectByExample(OutsourcingGoodsExample example);

    OutsourcingGoodsWithBLOBs selectByPrimaryKey(Integer outsourcingGoodsId);

    OutsourcingGoodsWithBLOBs selectByPrimaryKeyWithLogicalDelete(@Param("outsourcingGoodsId") Integer outsourcingGoodsId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") OutsourcingGoodsWithBLOBs record, @Param("example") OutsourcingGoodsExample example, @Param("selective") OutsourcingGoodsWithBLOBs.Column ... selective);

    int updateByExampleWithBLOBs(@Param("record") OutsourcingGoodsWithBLOBs record, @Param("example") OutsourcingGoodsExample example);

    int updateByExample(@Param("record") OutsourcingGoods record, @Param("example") OutsourcingGoodsExample example);

    int updateByPrimaryKeySelective(@Param("record") OutsourcingGoodsWithBLOBs record, @Param("selective") OutsourcingGoodsWithBLOBs.Column ... selective);

    int updateByPrimaryKeyWithBLOBs(OutsourcingGoodsWithBLOBs record);

    int updateByPrimaryKey(OutsourcingGoods record);

    int batchInsert(@Param("list") List<OutsourcingGoodsWithBLOBs> list);

    int batchInsertSelective(@Param("list") List<OutsourcingGoodsWithBLOBs> list, @Param("selective") OutsourcingGoodsWithBLOBs.Column ... selective);

    int logicalDeleteByExample(@Param("example") OutsourcingGoodsExample example);

    int logicalDeleteByPrimaryKey(Integer outsourcingGoodsId);
}